package la.iok.hzsvn.lewin.movie.cloud.model;

import java.util.Objects;

public class WxQRCodeParam {
    private String scene;
    private String page;
    private String envVersion;
    private Integer width;
    private Integer client;

    public String getScene() {
        return scene;
    }

    public void setScene(String scene) {
        this.scene = scene;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getEnvVersion() {
        return envVersion;
    }

    public void setEnvVersion(String envVersion) {
        this.envVersion = envVersion;
    }

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public Integer getClient() {
        return client;
    }

    public void setClient(Integer client) {
        this.client = client;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof WxQRCodeParam)) return false;
        WxQRCodeParam param = (WxQRCodeParam) o;
        return Objects.equals(scene, param.scene) && Objects.equals(page, param.page) && Objects.equals(envVersion, param.envVersion)
                && Objects.equals(width, param.width) && Objects.equals(client, param.client);
    }

    @Override
    public int hashCode() {
        return Objects.hash(scene, page, envVersion, width, client);
    }

    @Override
    public String toString() {
        return "WxQRCodeParam{" +
                "scene='" + scene + '\'' +
                ", page='" + page + '\'' +
                ", envVersion='" + envVersion + '\'' +
                ", width=" + width +
                ", client=" + client +
                '}';
    }
}
